/*
** parse.h for ktrace in /home/matt/Desktop/ensuitetrace
** 
** Made by mathieu1 lornac
** Login   <lornac_a@epitech.net>
** 
** Started on  Thu Dec  9 13:55:51 2010 mathieu1 lornac
** Last update Fri Dec 17 19:03:40 2010 mathieu1 lornac
*/

#ifndef __PARSE_H__
#define __PARSE_H__

#define OPT_STRING "af:dCcig:p:t:"
#define DEFAULT_FILENAME "ktrace.out"

typedef struct	s_args
{
  char		*filename;	/*The name of the file to write to*/
  int		open_flags;	/*The open mod of the file to write to*/
  int		tr_points;	/*Trace points of interests options*/
  int		tr_ops;		/*Specification of the ktrace operation*/
  int		pid;		/*Process or group Pid to trace*/
  char		*process_name;	/*Name of the exe to run*/
  int		args_to_skip;	/*Number of options given to ktrace*/
  int		clear;		/*Clear flag value*/
}		t_args;

t_args		*parse_args(int ac, char ** av);

void		init_args(t_args *args);


#endif /*__PARSE_H__*/
